<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{$share_info.title}</title>
    <meta name="description" content="">
    <style>
        :root {
            --nav-height: {$h}px;
        }
    </style>
    <link rel="stylesheet" href="__STATIC__/live2/css/common.css?v=64">
    <link rel="stylesheet" href="__STATIC__/live2/css/index.css?v=64">
</head>
<body>
<div data-role="page" class="container">

</div>

<script>
    window.config = {
        userinfo: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($userinfo))}`.replace(/[\r\n]/g, ``)),
        live_config: {
            live_id: parseInt(`{$live_id}`),
            live_record_id: parseInt(`{$room_info.id}`),
            status: parseInt(`{$room_info.status}`),
            nickname: `{:str_replace('\`','&lsquo;', $room_info.nickname)}`,
            avatar: `{$room_info.avatar}`,
            online_num: parseInt(`{$room_info.online_num}`),
            hot_num: parseInt(`{$room_info.hot_num}`),
            msg_info: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.msg_info))}`),
            gift_rules: JSON.parse(`{:json_encode($room_info.gift_rules)}`),
            contribution_rules: JSON.parse(`{:json_encode($room_info.List_rules)}`),
            pull_url_list: JSON.parse(`{:json_encode($room_info.pull_url_definition_list)}`),
            app_type: `{$app_type}`,
            page_type: parseInt(`{$is_in_app}`),
            live_start_time_info: `{$room_info.live_start_time_info}`,
            live_content: `{$room_info.live_content}`,
        },
        video_config: {
            element_id: 'video',
            microphone_status: parseInt(`{$room_info.microphone_status}`),
            camera_status: parseInt(`{$room_info.camera_status}`),
        },
        websocket_config: {
            gateway: `{$ws_gateway}`,
        },
        request_config: {
            host: `{$api_host}`,
            header: JSON.parse(`{$header}`),
        },
        share_config: {
            title: `{:str_replace('\`', '&lsquo;', $share_info.title)}`,
            desc: `{:str_replace('\`','&lsquo;', $share_info.desc)}`,
            url: `{:str_replace('\`','&lsquo;', $share_info.url)}`,
            img: `{:str_replace('\`','&lsquo;', $share_info.img)}`,
        },
        rtc_config: {
            switch: parseInt(`{$room_info.rtc_config.rtc_switch}`) === 1 ? 1 : 0,
            user: parseInt(`{$room_info.rtc_config.rtc_auth}`),
            num: parseInt(`{$room_info.rtc_config.rtc_max_user}`),
            status: parseInt(`{$room_info.rtc_status}`),
        },
        live_history: {
            chat_list: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.send_msg_record))}`.replace(/[\r\n]/g, ``)),
            award_active: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.award_active))}`),
            coupon_active: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.coupon_active))}`),
            recommend_goods: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.recommend_good))}`),
            rtc: JSON.parse(`{:str_replace('\`','&lsquo;', json_encode($room_info.pop_msg_rtc))}`.replace(/[\r\n]/g, ``))
        },
        week_info: JSON.parse(`{$week_info}`.replace(/[\r\n]/g, ``)),
        answer_btns: JSON.parse(`{:json_encode($room_info.answer_btns)}`),
    }
</script>
{if $is_in_app===0 || $is_in_app===3}
<script type="text/javascript" src="https://oss.goddessxzns.com/static/live/js/alirts.min.js"></script>
{/if}
{if $is_in_app===0}
<script src="https://static.jmlk.co/scripts/dist/jmlink.min.js"></script>
{/if}
<script type="text/javascript" src="https://oss.goddessxzns.com/static/live/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="https://oss.goddessxzns.com/static/live/js/jquery.mobile-1.4.5.min.js"></script>

{if in_array($is_in_app, [1, 2, 3, 4])}
<script type="text/javascript" src="https://oss.goddessxzns.com/static/live/js/lottie.min.js"></script>
{/if}
{if $signPackage !== '[]'}
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    //微信分享 配置
    wx.config({
        debug: false,
        appId: `{$signPackage.appId}`,
        timestamp: `{$signPackage.timestamp}`,
        nonceStr: `{$signPackage.nonceStr}`,
        signature: `{$signPackage.signature}`,
        jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
    })
    ;
    //微信分享 配置
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title: `{$share_info.title}`,
            desc: `{$share_info.desc}`,
            link: `{$signPackage.url}`,
            imgUrl: `{$share_info.img}`,
            type: `link`,
            dataUrl: '',
            success: function () {

            },
            cancel: function () {

            }
        });
        wx.onMenuShareTimeline({
            title: `{$share_info.title}`,
            link: `{$signPackage.url}`,
            imgUrl: `{$share_info.img}`,
            success: function () {

            },
            cancel: function () {

            }
        });
    });
</script>
{/if}
<script type="text/javascript" src="__STATIC__/live2/js/common.js?v=64"></script>
<script type="text/javascript" src="__STATIC__/live2/js/view.js?v=70"></script>
<script type="text/javascript" src="__STATIC__/live2/js/api.js?v=64"></script>
<script type="text/javascript" src="__STATIC__/live2/js/index.js?v=64"></script>
</body>
</html>
